#pragma once
#include "imageloader.h"
#include <GL/glut.h>

class BlockPart
{
public:
	BlockPart(void);
	virtual void display();
	//GLuint loadTexture(Image* image);
	void drawCube(void);
	//virtual float getHeight() = 0;
	virtual ~BlockPart(void);
};

class PlainBlock : public BlockPart
{
public:
	PlainBlock(void);
	virtual void display();
private:
	void loadImage();
	GLuint blockTexture;
	~PlainBlock(void);
};

class PlainShortBlock : public BlockPart
{
public:
	PlainShortBlock(void);
	virtual void display();
private:
	void loadImage();
	GLuint blockTexture;
	~PlainShortBlock(void);
};